#ifndef CNPIPE_UTILS_H
#define CNPIPE_UTILS_H

#include <QMap>
#include <QObject>

class CNPIPE_utils : public QObject {
    static QObject *initializeSingleMap(QMap<QString, QObject*> *map, QString str) {
        QObject *returnObj = map->value(str);
        if (returnObj == NULL) {
            returnObj = new QObject();
            map->insert(str, returnObj);
        }
        return returnObj;
    }
};

#endif // CNPIPE_UTILS_H
